home *** CD-ROM | disk | FTP | other *** search
- include("oops/r3file.js");
-
- // open file for writing in ascii mode
- file = new r3File(R3FIA_FileName, "jstest.txt",
- R3FIA_Mode, "wa+");
-
- // write a couple of strings to a file
- file.PUTS("This string was written by PUTS method\n");
- file.PUTS("Another string written by PUTS\n");
-
- // close the file
- file.DELETE();
-
- // open file for reading
- file = new r3File(R3FIA_FileName, "jstest.txt",
- R3FIA_Mode, "ra+");
-
- // read
- str = new String();
- while(file.GETS([0])) {
- str += file.GetBuffer();
- }
-
- print(str);
-
- file.DELETE();
-
-
-